<!doctype>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
    [
      '<div contenteditable>',
        '<div>',
          '|<span style="font: 12.0px Lucida Grande"></span><br>',
          '<span style="font: 12.0px Lucida Grande">- Ken</span><br>',
          '<span style="font: 12.0px Lucida Grande"></span>',
        '</div>',
      '</div>'
    ].join(''),
    selection => {
      for (let i = 0; i < 20; ++i)
        selection.modify('move', 'forward', 'character');
    },
    [
      '<div contenteditable>',
        '<div>',
          '<span style="font: 12.0px Lucida Grande"></span><br>',
          '<span style="font: 12.0px Lucida Grande">- Ken|</span><br>',
          '<span style="font: 12.0px Lucida Grande"></span>',
        '</div>',
      '</div>'
    ].join(''));
</script>
